package cn.dnui_wnx725.dnuifood_16110100725.model;

import java.util.List;

import cn.dnui_wnx725.dnuifood_16110100725.bean.CollectListBean;
import cn.dnui_wnx725.dnuifood_16110100725.iface.CollectListIface;
import cn.dnui_wnx725.dnuifood_16110100725.listener.ListListener;
import cn.dnui_wnx725.dnuifood_16110100725.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;

public class CollectListModel extends RetrofitBaseModel implements CollectListIface<CollectListBean> {
    Retrofit retrofit;
    Service service;

    public CollectListModel(){
        retrofit = getRetrofit();
        service = getService();
    }

    @Override
    public void getCollectList(String user_id, String flag, ListListener<CollectListBean> listListener) {
        Call<List<CollectListBean>> call = service.getCollectlist(user_id,flag);
        callenqueueList(call,listListener);
    }
}